package com.pgeneral.user.management.dao;

import com.pgeneral.user.management.entity.DepartmentInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 龙
 * @create 2020/6/30 12:20
 */
public interface DepartmentInfoMapper {

    /**
     * 查询科室
     * @param departmentinfo
     * @return
     */
    List<DepartmentInfo> getDepartmentinfoTable(DepartmentInfo departmentinfo);

    /**
     * 修改科室
     * @param departmentInfos
     * @return
     */
    int updateDepartmentinfoTable(@Param("departmentInfos") List<DepartmentInfo> departmentInfos);

    /**
     * 删除科室，把isdelete设置为1
     * @param ids
     * @return
     */
    int updateIsDeletefromDepartmentinfoTable(@Param("ids") List<String> ids);

    /**
     * 插入科室
     * @param departmentInfos
     * @return
     */
    int insert(List<DepartmentInfo> departmentInfos);
}